package com.lark.web.domain;

import lombok.Data;
import com.lark.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lark.common.utils.log.annotation.FieldRemark;
import com.lark.common.utils.log.annotation.LogField;
import com.lark.common.annotation.Excel;

/**
 * 文件中心对象 file_system
 * @author fei
 * @email zhangfei0210@163.com
 * @date 2024-09-10
 */
@Data
public class FileSystem extends BaseEntity<FileSystem>
{
    private static final long serialVersionUID = 1L;

    /** 文件名 */
    @Excel(name = "文件名")
    @LogField
    @FieldRemark(name = "文件名",field = "fileName")
    private String fileName;

    /** 修改时间 */
    @Excel(name = "修改时间")
    @LogField
    @FieldRemark(name = "修改时间",field = "fileUpdateTime")
    private String fileUpdateTime;

    /** 类型 */
    @Excel(name = "类型", dictType = "fie_type")
    @LogField
    @FieldRemark(name = "类型",field = "fileType")
    private String fileType;

    /** 大小 */
    @Excel(name = "大小")
    @LogField
    @FieldRemark(name = "大小",field = "fileSize")
    private String fileSize;

    // 请求参数
    private String ip;
    // 请求参数
    private String path;
    // 请求参数
    private String newFileName;
    // 请求参数
    private String currentPath;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileName", getFileName())
            .append("fileUpdateTime", getFileUpdateTime())
            .append("fileType", getFileType())
            .append("fileSize", getFileSize())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
